package com.example.designpatterns.model.observer;

/**
 * @author yanyun zhu
 * @version 1.0
 * @date 2022/1/4 9:11
 */
public class Demo {

    public static void main(String[] args) {
        ConcreteSubject subject = new ConcreteSubject();
        subject.registerObserver(new ConcreteObserverOne());
        subject.registerObserver(new ConcreteObserverTwo());
//        subject.notifyObservers(new Message());
    }
}